import { createRouter, createWebHistory } from 'vue-router'
import { loadLocalRoutes } from '@/utils/map-menus'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL), // 路由模式
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/main',
      children: [
        ...loadLocalRoutes()
      ]
    },
  ],
})
loadLocalRoutes()
export default router
